package com.example.demo.json;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Author: xiatian
 * @CreateTime: 2021/4/8
 * @Company: kangxu
 */
@RestController
public class CustomJson {

    @GetMapping("/test")
    public Map testJson() {
        Map<String, Object> map = new HashMap<>();
        map.put(null, "这个Key是个null看会不会报错");
        map.put("aa", "bbb");
        return map;
    }


}
